<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>OrbbecSDK: ob::Recorder类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="orbbec_icon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OrbbecSDK
   &#160;<span id="projectnumber">1.8.3</span>
   </div>
   <div id="projectbrief">OrbbecSDK: 奥比中光 3D 相机开发套件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceob.html">ob</a></li><li class="navelem"><a class="el" href="classob_1_1Recorder.html">Recorder</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classob_1_1Recorder-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">ob::Recorder类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classob_1_1Recorder.html" title="Recorder 类, 实现帧录制功能 ">Recorder</a> 类, 实现帧录制功能  
 <a href="classob_1_1Recorder.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="RecordPlayback_8hpp_source.html">RecordPlayback.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a441e0cde1c82080e273e3041b2772715"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Recorder.html#a441e0cde1c82080e273e3041b2772715">Recorder</a> ()</td></tr>
<tr class="memdesc:a441e0cde1c82080e273e3041b2772715"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建录制器用于数据的录制  <a href="#a441e0cde1c82080e273e3041b2772715">更多...</a><br /></td></tr>
<tr class="separator:a441e0cde1c82080e273e3041b2772715"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf5d5e3c9fd714e0c66bde7d4f0e068e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Recorder.html#abf5d5e3c9fd714e0c66bde7d4f0e068e">Recorder</a> (std::unique_ptr&lt; RecorderImpl &gt; impl)</td></tr>
<tr class="separator:abf5d5e3c9fd714e0c66bde7d4f0e068e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd66ed40058948c71a9cee852f357a17"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Recorder.html#acd66ed40058948c71a9cee852f357a17">Recorder</a> (std::shared_ptr&lt; <a class="el" href="classob_1_1Device.html">Device</a> &gt; device)</td></tr>
<tr class="memdesc:acd66ed40058948c71a9cee852f357a17"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建录制器用于数据的录制  <a href="#acd66ed40058948c71a9cee852f357a17">更多...</a><br /></td></tr>
<tr class="separator:acd66ed40058948c71a9cee852f357a17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a89db910d8778a3c1f9e0a598b60430"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Recorder.html#a9a89db910d8778a3c1f9e0a598b60430">~Recorder</a> () noexcept</td></tr>
<tr class="separator:a9a89db910d8778a3c1f9e0a598b60430"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5a0b732fbdc4ec156b5a610e7c50165"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Recorder.html#aa5a0b732fbdc4ec156b5a610e7c50165">start</a> (const char *filename, bool async=false)</td></tr>
<tr class="memdesc:aa5a0b732fbdc4ec156b5a610e7c50165"><td class="mdescLeft">&#160;</td><td class="mdescRight">开启录制器，失败后抛出异常  <a href="#aa5a0b732fbdc4ec156b5a610e7c50165">更多...</a><br /></td></tr>
<tr class="separator:aa5a0b732fbdc4ec156b5a610e7c50165"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4fe634ead9a37d0a87f2b7e7d252f98"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Recorder.html#ac4fe634ead9a37d0a87f2b7e7d252f98">stop</a> ()</td></tr>
<tr class="memdesc:ac4fe634ead9a37d0a87f2b7e7d252f98"><td class="mdescLeft">&#160;</td><td class="mdescRight">停止录制器，失败后抛出异常  <a href="#ac4fe634ead9a37d0a87f2b7e7d252f98">更多...</a><br /></td></tr>
<tr class="separator:ac4fe634ead9a37d0a87f2b7e7d252f98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae703692af04cec5c36155d87cd68ea06"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Recorder.html#ae703692af04cec5c36155d87cd68ea06">write</a> (std::shared_ptr&lt; <a class="el" href="classob_1_1Frame.html">Frame</a> &gt; frame)</td></tr>
<tr class="memdesc:ae703692af04cec5c36155d87cd68ea06"><td class="mdescLeft">&#160;</td><td class="mdescRight">向录制器内写入帧数据  <a href="#ae703692af04cec5c36155d87cd68ea06">更多...</a><br /></td></tr>
<tr class="separator:ae703692af04cec5c36155d87cd68ea06"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="classob_1_1Recorder.html" title="Recorder 类, 实现帧录制功能 ">Recorder</a> 类, 实现帧录制功能 </p>

<p>在文件 <a class="el" href="RecordPlayback_8hpp_source.html">RecordPlayback.hpp</a> 第 <a class="el" href="RecordPlayback_8hpp_source.html#l00024">24</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a441e0cde1c82080e273e3041b2772715"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ob::Recorder::Recorder </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建录制器用于数据的录制 </p>

</div>
</div>
<a class="anchor" id="abf5d5e3c9fd714e0c66bde7d4f0e068e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ob::Recorder::Recorder </td>
          <td>(</td>
          <td class="paramtype">std::unique_ptr&lt; RecorderImpl &gt;&#160;</td>
          <td class="paramname"><em>impl</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="acd66ed40058948c71a9cee852f357a17"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ob::Recorder::Recorder </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="classob_1_1Device.html">Device</a> &gt;&#160;</td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建录制器用于数据的录制 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">device</td><td>需要录制设备信息的设备 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9a89db910d8778a3c1f9e0a598b60430"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ob::Recorder::~Recorder </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="aa5a0b732fbdc4ec156b5a610e7c50165"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ob::Recorder::start </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>async</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>开启录制器，失败后抛出异常 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>录制的文件名称 </td></tr>
    <tr><td class="paramname">async</td><td>是否异步执行 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac4fe634ead9a37d0a87f2b7e7d252f98"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ob::Recorder::stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>停止录制器，失败后抛出异常 </p>

</div>
</div>
<a class="anchor" id="ae703692af04cec5c36155d87cd68ea06"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ob::Recorder::write </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="classob_1_1Frame.html">Frame</a> &gt;&#160;</td>
          <td class="paramname"><em>frame</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向录制器内写入帧数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">frame</td><td>写入的帧数据 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>header_cn/libobsensor/hpp/<a class="el" href="RecordPlayback_8hpp_source.html">RecordPlayback.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2023年 十一月 24日 星期五 10:56:17 , 为 OrbbecSDK使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
